
<div class="slide-1 slider-box" id="slide4">
    <a href="#" class="a-slide-1"><?php echo $heading_title; ?></a>
    <ul>
        <?php
        foreach($products as $valBest){ //print_r($products);die;
        ?>
        <li class="li-slide-1">
            <a class="a-slide1" href="<?php echo $valBest['href']?>">
                <img src="<?php echo $valBest['thumb']?>" class="img-product" />
                <span><?php echo $valBest['name']?></span>
                <span class="gia s">
                    <?php echo $valBest['price']?> -
                    <span class="gach s"><?php echo $valBest['price']?></span> </span>
                <!--<a href="#" class="add-cart button" onclick="addToCart('<?php echo $valBest['product_id']; ?>');">Add to cart</a>-->
            </a>
            <img src="catalog/view/theme/default/images/stars-0.png" class="star"/>
            <input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $valBest['product_id']; ?>');" class="button add-cart add-cart-2" />
        </li>
        <?php
        }
        ?>

    </ul>
</div>
<script type="text/javascript">
    $('#slide4').jcarousel({
        scroll: 5,
        visible: 5,
    });
</script>